<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "iliketry.smash_eggs_game_log".
 *
 * @property integer $id
 * @property integer $uid
 * @property string $username
 * @property integer $prize
 * @property string $addtime
 */
class EggsGameLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'iliketry.smash_eggs_game_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid', 'username', 'prize', 'addtime'], 'required'],
            [['uid', 'prize'], 'integer'],
            [['addtime'], 'safe'],
            [['username'], 'string', 'max' => 30],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'uid' => '用户uid',
            'username' => '用户名称',
            'prize' => '喜元',
            'addtime' => '添加时间',
        ];
    }
}
